//
// Created by Administrator on 2022/6/26.
//

#ifndef RAPIDSVN_WIN_HOSTDETAILFRAME_H
#define RAPIDSVN_WIN_HOSTDETAILFRAME_H


///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 26 2018)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#pragma once

#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/scrolwin.h>
#include <wx/textctrl.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/button.h>
#include <wx/frame.h>
#include <public/tag.h>
///////////////////////////////////////////////////////////////////////////

class MessageThread;

///////////////////////////////////////////////////////////////////////////////
/// Class detail_client
///////////////////////////////////////////////////////////////////////////////
class ClientDetailFrame : public wxFrame
{
private:
    GetHostInfo *hostInfo;
    MessageThread *workThread;
    void OnActionEvent( wxCommandEvent &event );
    void BuildChatItemView( GetChat* chat );

    wxVector< std::shared_ptr<GetChat> > get_chats;
    void OnPost( wxMouseEvent &event );
    void OnClose(wxCloseEvent& event);
protected:
    wxStaticText* static_hostname;
    wxStaticText* static_datetime;
    wxStaticText* static_wan_ip;
    wxStaticText* static_system;
    wxStaticText* static_client_install_dir;
    //
    wxTextCtrl* static_interfaces;

    wxBoxSizer* sizer_chats;
    wxScrolledWindow* scrolled_chats;

    wxTextCtrl* text_message;
    wxButton* button_post;

public:

    ClientDetailFrame( wxWindow* parent, GetHostInfo* hostInfo, wxWindowID id = wxID_ANY,
            const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition,
            const wxSize& size = wxSize( 600,800 ),
            long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );

    ~ClientDetailFrame() override;
DECLARE_EVENT_TABLE()
};



#endif //RAPIDSVN_WIN_HOSTDETAILFRAME_H
